import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import moment from "moment"
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

axios.defaults.baseURL='http://localhost:8080'
Vue.prototype.$http=axios

Vue.filter('datefmt',function (data, datefmtStr) {
  return moment(data).format(datefmtStr);
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
